/**
 * Created by Administrator on 2017/7/18.
 */


module.exports = function(app) {
    return new Handler(app);
};

var Handler = function(app) {
    this.app = app;
};

var handler = Handler.prototype;

handler.getCurWeekPlayRound = function(msg, session, next) {
    msg.nolog = true;
    next(null, {ranks: gRankManager.getCurWeekPlayRoundRanks(), rank: gRankManager.getCurWeekPlayRoundRank(session.uid)});
};

handler.getLastWeekPlayRound = function(msg, session, next) {
    msg.nolog = true;
    next(null, {ranks: gRankManager.getLastWeekPlayRoundRanks().ranks, rank: gRankManager.getLastWeekPlayRoundRank(session.uid)});
}